package com.jmlee.service;

import com.jmlee.bo.SubmitOrderBO;
import com.jmlee.pojo.CommonResult;
import com.jmlee.pojo.OrderStatus;
import com.jmlee.vo.OrderVO;

import java.util.List;

/**
 * @Description 订单服务
 * @Author jmLee
 * @Date 2021/3/10 18:54
 * @Version 1.0
 */
public interface OrderService {

    CommonResult createOrder(SubmitOrderBO submitOrderBO);

    void updateOrderStatus(Long orderId, Integer orderStatus);

    OrderStatus getOrderStatusInfo(Long orderId);

    void closeOrder();

    List<OrderVO> getUserOrders(Long userId, Integer orderStatus);

    OrderVO getUnpayOrder(Long orderId);

}
